package com.gs.weather.dao.mapper;

import com.gs.weather.entity.DisasterForecast;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/9/21 0021
 */
@Repository
public interface DisasterForecastMapper {
    /*
    根据灾害预测名字查询阈值
     */
    Double queryThreshold(String name);


    List<DisasterForecast> queryAll();

    void add(DisasterForecast disasterForecast);

    void delete(int id);

    void update(DisasterForecast disasterForecast);
}
